<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1,maximum-scale=1">
  <title>记忆课堂</title>
    <link href="/lib/bootstrap/css/bootstrap.css" rel="stylesheet">
    <link rel="stylesheet" href="/stylesheets/base.css">
</head>
<body>
  <div id="app">
    <div class="bar clearfix">
      <div class="container">
        <div class="pull-left">
          <a href="/"><span class="back">Home</span></a>
        </div>
        <span class="bar-en">user register</span>
      </div>
    </div>
  
    <div class="container mt20 col-md-6 col-md-offset-3">
      <form action="" class="form-horizontal">
        <div class="form-group">
          <div class=" text-right col-md-8 col-xs-8 col-md-offset-4 col-xs-offset-4">
            <strong class="text-warning">请尽量用汉字做用户名哦！</strong>
          </div>
        </div>
        <div class="form-group">
          <label for="name" class="col-md-4 col-xs-4 label-control">用 户 名</label>
          <div class="col-md-8 col-xs-8">
            <input type="text" v-model="userInfo.name" id="name" class="form-control" placeholder="请输入用户名">
          </div>
        </div>
        <div class="form-group">
          <label for="password" class="col-md-4 col-xs-4 label-control">密　  &nbsp;码</label>
          <div class="col-md-8 col-xs-8">
            <input type="password" id="password" v-model="userInfo.password" class="form-control" placeholder="请输入密码">
          </div>
        </div>
        <div class="form-group">
          <label for="confirmPassword" class="col-md-4 col-xs-4 label-control">确认密码</label>
          <div class="col-md-8 col-xs-8">
            <input type="password" id="confirmPassword" v-model="userInfo.confirmPassword" class="form-control" placeholder="请再次输入密码">
          </div>
        </div>
        <div class="form-group">
          <div class="col-md-8 col-xs-8 col-md-offset-4 col-xs-offset-4">
            <button @click.prevent="register" class="btn btn-primary">注册并登陆</button>
          </div>
        </div>
      </form>
    </div>


  </div>
  
  
  <script type="text/javascript" src="/lib/vue/vue.min.js"></script>
  <script src="/lib/vue/vue-resource.min.js"></script>
  <script src="/scripts/assets/util.js"></script>
  <script src="/scripts/user/register.js"></script>
</body>
</html>